|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectobservations.DomainObject
observations.Phenomenon
Phenomenon Is a particular phenomenon like 'high' or 'obese'.
It is part of Fowler's pattern 'Observation'. Each phenomenon is a value for
some phenomenon type.
PhenomenonType| Constructor Summary | |
Phenomenon()
Default constructor for phenomenon. |
|
Phenomenon(java.lang.String name)
Constructs a new phenomenon object. |
|
Phenomenon(java.lang.String name,
PhenomenonType type)
Constructs a new phenomenon object with a particular type. |
|
| Method Summary | |
static Phenomenon |
get(java.lang.String name)
Use this to search a phenomenon by name. |
java.lang.String |
getName()
Gives the phenomenon's name. |
PhenomenonType |
getPhenomenonType()
Gives the type for the phenomenon. |
boolean |
includes(Quantity arg)
Tests whether the quantity is included in the phenomenon's range. |
Phenomenon |
persist()
Saves the phenomenon. |
void |
setRange(QuantityRange arg)
Sets the range of the phenomenon eg. '80 mm/Hg - 120 mm/Hg'. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Phenomenon()
DomainObject.DomainObject()public Phenomenon(java.lang.String name)
name - the name of the phenomenonDomainObject.DomainObject(String)
public Phenomenon(java.lang.String name,
PhenomenonType type)
name - the name of the phenomenontype - the phenomenon type for the phenomenonDomainObject.DomainObject(String)| Method Detail |
public static Phenomenon get(java.lang.String name)
name - name of the phenomenon to search
public java.lang.String getName()
getName in interface DomainInterfacegetName in class DomainObjectDomainObject.getName()public PhenomenonType getPhenomenonType()
public boolean includes(Quantity arg)
arg - quantity to test
public Phenomenon persist()
public void setRange(QuantityRange arg)
arg - the range of the phenomenon
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||